import re

a = 'abc,acc,adc,aec,afc,ahc'
r = re.findall('a[^a-c]c', a)

print(r)
